// -------------------------------------------------------------------
// markItUp!
// -------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// -------------------------------------------------------------------
// Mediawiki Wiki tags example
// -------------------------------------------------------------------
// Feel free to add more tags
// -------------------------------------------------------------------
var mySettings = {
	previewParserPath:	'', // path to your Wiki parser
	onShiftEnter:		{keepDefault:false, replaceWith:'\n\n'},
	markupSet: [
		{name:'Heading 1', key:'1', openWith:'# ', closeWith:'', placeHolder:'Your title here...' },
		{name:'Heading 2', key:'2', openWith:'## ', closeWith:'', placeHolder:'Your title here...' },
		{name:'Heading 3', key:'3', openWith:'### ', closeWith:'', placeHolder:'Your title here...' },
		{name:'Heading 4', key:'4', openWith:'#### ', closeWith:'', placeHolder:'Your title here...' },
		{name:'Heading 5', key:'5', openWith:'##### ', closeWith:'', placeHolder:'Your title here...' },
		{separator:'---------------' },		
		{name:'Bold', key:'B', openWith:"__", closeWith:"__"}, 
		{name:'Italic', key:'I', openWith:"_", closeWith:"_"}, 
		// {name:'Stroke through', key:'S', openWith:'<s>', closeWith:'</s>'}, 
		{separator:'---------------' },
		{name:'Bulleted list', openWith:'+ '}, 
		{name:'Numeric list', openWith:'1. '}, 
		{separator:'---------------' },
		{name:'Picture', key:"P", call:'dialogEditImage',isMarkInsert:false},
		{name:'Link', key:"L",call:'dialogEditLink',isMarkInsert:false },//openWith:"[[![Link]!] ", closeWith:']', placeHolder:'Your text to link here...' },
		// {name:'Url', openWith:"[[![Url:!:http://]!] ", closeWith:']', placeHolder:'Your text to link here...' },
		{separator:'---------------' },
		{id:'markdown-preview' ,name:'Preview', call:'preview', className:'preview'}
	],
	previewInElement:document.getElementById('iframePreview'),
	previewParser:function(data){
		return window.markdown.toHTML(data)
	}
}
//jQuery("#ifr_id").contents().find("body").